import request from '@/utils/request'

const qs = require('qs')


// 分页查询
export function list(params){
    return request({
        url: '/aqsc/manage/list',
        method: 'get',
        params
        
    })
}
// 新增车间信息
export function add(data){
    return request({
        url: '/aqsc/manage/add',
        method:'post',
        headers: { 'content-type': 'application/x-www-form-urlencoded' },
        data: qs.stringify(data)
    })
}
// 修改车间信息
export function update(data){
    return request({
        url:'/aqsc/manage/add',
        method:'post',
        headers: { 'content-type': 'application/x-www-form-urlencoded' },
        data: qs.stringify(data)
        
    })
}

// 根据id查询
export function findById(id){
    return request({
        url:'aqsc/manage/findById/'+id,
        method:'post' 
    })
}

// 文件上传
export function importData(){
    return request({
        url:'/aqsc/manage/importData',
        method:'post'
    })
}

//批量删除
export function deleteByIds(ids){
    return request({
        url:'/aqsc/manage/deleteByIds/'+ids,
        method:'delete'
    })
}


